import type { FC } from 'react';
import { Link, useRouter } from 'expo-router';
import { View, Text, Button } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import Session from '@/libs/session';

const Posts: FC = () => {
  const router = useRouter();
  const onPress = async () => {
    await Session.clearSession()
    router.dismissTo('/');

  }
  return (
    <SafeAreaView>
      <Button onPress={onPress} title='登出'/>
    </SafeAreaView>
  )
}

export default Posts;